luci-app-frpc: Set the disable_log_color option to false by default
authorRen Zongjia <[email protected]>
Fri, 24 Dec 2021 07:14:14 +0000 (15:14 +0800)
committerbrvphoenix <[email protected]>
Thu, 1 Sep 2022 14:52:50 +0000 (22:52 +0800)
Signed-off-by: Ren Zongjia <[email protected]>
(cherry picked from commit 9f831e75e5764eb42a16b3ae5851b7524e1341c1)

applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js

index 7ad2f8a20216fdd0cefc4547f500fabe45bb6c8a..ae9ea3acfa658f49e64550b120a03661acc36302 100644 (file)
@@ -21,7 +21,7 @@ var commonConf = [
        [form.Value, 'server_port', _('Server port'), _('ServerPort specifies the port to connect to the server on.<br />By default, this value is 7000.'), {datatype: 'port'}],
        [form.Value, 'http_proxy', _('HTTP proxy'), _('HttpProxy specifies a proxy address to connect to the server through. If this value is "", the server will be connected to directly.<br />By default, this value is read from the "http_proxy" environment variable.')],
        [form.ListValue, 'log_level', _('Log level'), _('LogLevel specifies the minimum log level. Valid values are "trace", "debug", "info", "warn", and "error".<br />By default, this value is "info".'), {values: ['trace', 'debug', 'info', 'warn', 'error']}],
-       [form.Flag, 'disable_log_color', _('Disable log color'), _('DisableLogColor disables log colors when LogWay == "console" when set to true.'), {datatype: 'bool', default: 'true'}],
+       [form.Flag, 'disable_log_color', _('Disable log color'), _('DisableLogColor disables log colors when LogWay == "console" when set to true.'), {datatype: 'bool', default: 'false'}],
        [form.Value, 'token', _('Token'), _('Token specifies the authorization token used to create keys to be sent to the server. The server must have a matching token for authorization to succeed. <br />By default, this value is "".')],
        [form.Value, 'admin_addr', _('Admin address'), _('AdminAddr specifies the address that the admin server binds to.<br />By default, this value is "127.0.0.1".'), {datatype: 'ipaddr'}],
        [form.Value, 'admin_port', _('Admin port'), _('AdminPort specifies the port for the admin server to listen on. If this value is 0, the admin server will not be started.<br />By default, this value is 0.'), {datatype: 'port'}],